//
//  NSMutableAttributedString+ZSExtension.m
//  ZSComponent
//
//  Created by HuangZuShu on 17/9/8.
//  Copyright © 2017年 Mac. All rights reserved.
//

#import "NSMutableAttributedString+ZSExtension.h"

@implementation NSMutableAttributedString (ZSExtension)

- (void)setSubsetString:(NSString *)subsetString color:(UIColor *)color font:(UIFont *)font {
    [self addAttribute:NSForegroundColorAttributeName value:color range:[self.string rangeOfString:subsetString]];
    [self addAttribute:NSFontAttributeName value:font range:[self.string rangeOfString:subsetString]];
}


@end
